package model

type SysOperLog struct {
	Id            int64  `json:"id" gorm:"comment:主键;primaryKey"`
	Title         string `json:"title" gorm:"comment:模块标题;size:50"`
	BusinessType  int    `json:"business_type" gorm:"comment:业务类型;default:0"`
	OriginValue   string `json:"origin_value" gorm:"comment:原值;type:text"`
	Value         string `json:"value" gorm:"comment:新值;type:text"`
	RequestMethod string `json:"request_method" gorm:"comment:请求方式;size:10"`
	Url           string `json:"url" gorm:"comment:请求地址;size:255"`
	Method        string `json:"method" gorm:"comment:请求方法;size:100"`
	Param         string `json:"param" gorm:"comment:请求参数;size:2000"`
	Result        string `json:"result" gorm:"comment:返回数据;size:2000"`
	Status        int    `json:"status" gorm:"comment:操作状态"`
	ErrorMsg      string `json:"error_msg" gorm:"comment:错误信息;size:2000"`
	OperId        int64  `json:"oper_id" gorm:"comment:操作用户id"`
	OperName      string `json:"oper_name" gorm:"comment:操作用户名称;size:50"`
	DeptName      string `json:"dept_name" gorm:"comment:部门名称;default:'';size:50"`
	Ip            string `json:"ip" gorm:"comment:用户ip;size:128"`
	Location      string `json:"location" gorm:"comment:操作地点;size:255"`
	OperType      int    `json:"oper_type" gorm:"comment:操作类型;default:0"`
	Description   string `json:"description" gorm:"comment:描述;size:500"`
	CreateAt      int64  `json:"create_at" gorm:"comment:创建时间;autoCreateTime"`
}
